package com.input4hua.builder.builder.A;

import com.input4hua.builder.builder.Builder;
import com.input4hua.builder.product.AProduct;
import com.input4hua.builder.product.Product;

/**
 * Created by jiahua.hu on 2019/2/19.
 */
public class A1Builder extends Builder {

    private AProduct product = new AProduct();

    @Override
    public void doPart() {
        product.setName("A-1");
        product.getParts().clear();
        product.doPart1();
        product.doPart2();
    }

    @Override
    public Product buildProduct() {
        return product;
    }
}
